package cc.comac.mom.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipRepairOpRecordService;
import cc.comac.mom.bean.EquipRepairOpRecord;
import cc.comac.mom.bean.base.LimitPageBean;
import cc.comac.mom.datahandlers.entity.EquipRepairOpRecordDataHandler;
import cc.comac.mom.entity.EquipRepairOpRecordEntity;
import cc.comac.mom.util.ResultBean;

@Service
@RestController
public class EquipRepairOpRecordServiceImpl implements EquipRepairOpRecordService{

	@Autowired
	private EquipRepairOpRecordDataHandler equipRepairOpRecordDataHandler;
	@Override
	public ResultBean selectByCondition(@RequestBody EquipRepairOpRecord obj) {
		ResultBean resultBean = new ResultBean(true);
		LimitPageBean<EquipRepairOpRecordEntity> selectByCondition = equipRepairOpRecordDataHandler.selectByCondition(obj);
		resultBean.setObject(selectByCondition);
		return resultBean;
	}

	
}
